package com.baoyouqun.domain.UpdateCmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderRecordUpdateCmd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "订单类型")
    private String type;

    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "订单总金额（元）")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "实付金额（元，可开票金额）")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "订单状态 ")
    private Byte status;

    @ApiModelProperty(value = "发票状态（0-未开票，1-已开票）")
    private String invoiceStatus;

    @ApiModelProperty(value = "支付时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "用户备注")
    private String remark;

    @ApiModelProperty(value = "是否兑换会员")
    private Boolean vipExpire;

    @ApiModelProperty(value = "最后更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}